let commentInfoModel = require("../../model/blog/commentTable");
let Service = {
    add: (info) => commentInfoModel.insertMany([info]),
    query: (info) => commentInfoModel.find(info).sort({ createTime: -1 }),
    delete: (info) => commentInfoModel.remove(info),
    update: (info) => commentInfoModel.updateOne({ _id: info._id }, info)
};
module.exports = Service;
